<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>头部导航</title>
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_3414996_dabnbu32yha.css">
    <link rel="stylesheet" href="../css/header.css">

</head>

<body>
    <div class="header-con">
        <!-- 引入账户部分 -->
        <div class="accont">

        </div>
        <!-- 头部上方导航部分 -->
        <div class="header-wrap">
            <div class="head-con">
                <!-- logo部分 -->
                <div class="logo">
                    <!-- 点击跳转首页 -->
                    <a href="../html/index.html" target="_blank">
                        <img src="../images/logo.png" alt="">
                    </a>
                </div>
                <!-- 右侧导航部分 -->
                <div class="head-menu">
                    <ul>
                        <li class="search"><a href="#"><span class="iconfont icon-sousuo"></span>搜索</a></li>
                        <li><a href="#">店铺</a></li>
                        <li><a href="./register.html" " onclick="toReg()">注册</a></li>
                        <li><a href="./loginall.html" onclick="toLogin()">登录</a></li>
                        <li class="accountBtn"><a href="javascript:;">账户</a></li>
                        <li><a href="./carList.html" target="_blank"><span class="iconfont icon-24gl-bag"></span>购物袋</a>
                        </li>
                    </ul>
                </div>
            </div>

            <!-- 用户名位置 -->
            <div class="uswrap">
                <h3>username 欢迎</h3>
                <button>退出</button>
            </div>
        </div>

    </div>
    <script src="../js/animateBak.js"></script>
    <script src="../js/jquery.min.js"></script>
    <script src="../js/header.js"></script>

    <script>
        $(".accont").load("./login.html");
        function toReg() {
            window.parent.location.href = '/html/register.html';
        }
        function toLogin(){
            window.parent.location.href = '/html/loginall.html';
        }
    </script>


</body>

</html>